﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Helpers;

namespace ElectronicsMarket.InternalService
{
    public class MailService
    {
        public static void SendMailToAddress(string mail, string subject, string content)
        {
            WebMail.SmtpServer = "smtp.gmail.com";
            WebMail.SmtpPort = 587;
            WebMail.UserName = "electronics.market.sgu@gmail.com";
            WebMail.Password = "tonthattu";
            WebMail.From = "phucan1108@gmail.com";
            WebMail.EnableSsl = true;
            WebMail.Send(mail, subject, content);
        }
    }
}